<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                </div>
                <div class="box-body" style=" ">
                    <uib-accordion close-others="false">
                        <uib-accordion-group heading="Jump Server" is-open="true">
                            名称:<input type="text" ng-model="server.name"/>
                            <br>
                            <br>
                            <span ng-if="type == '1'">
            IP: <input type="text" ng-model="server.ip"/><br><br>
        </span>
                            <span ng-if="type == '2'">
            IP: <input type="text" ng-model="server.ip" readonly="readonly"/><br><br>
        </span> sshPort:
                            <input type="text" ng-model="server.sshPort"/>
                            <br>
                            <br>
                            <div class="col-xs-6" style="padding-left: 0;width: 20%;">
                                跳板机级别:
                                <select class="form-control" style="width: 55%;float: right;" ng-model="server.level"
                                        ng-disabled="type == '2'">
                                    <option value="1">一级跳板机</option>
                                    <option value="2">二级跳板机</option>
                                </select>
                            </div>
                            <br>
                            <br>
                            <span ng-show="server.level == '2' ">
            <br>
            上级跳板机IP:<input type="text" ng-model="server.parentIp" ng-disabled="type == '2'"/><br><br>
            </span>
                            <br>
                            <br>
                            描述:<input type="text" ng-model="server.desc"/>
                        </uib-accordion-group>
                        <br>
                        <span ng-if="type == '1'">
                            <uib-accordion-group heading="Jump Server" is-open="true">
                                sshUser: <input type="text" ng-model="server.sshUser"/><br><br>
                                pass: <input type="password" ng-model="server.pass"/><br><br>
                                rootPass: <input type="password" ng-model="server.rootPass"/><br><br>
                                <input type="button" ng-click="initJumpServer();" id="initJumpServer"
                                       class="btn btn-info" value="初始化"/>
                            </uib-accordion-group>
                            <br>
                        </span>
                    </uib-accordion>
                    <br>
                    <input type="button" value="保存" ng-disabled="runIng" class="btn btn-info" ng-click="save();"/>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" value="返回" ng-disabled="runIng" class="btn btn-info" ng-click="goBack();"/>
                </div>
            </div>
        </div>
    </div>
</section>
